<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<head>
<meta name="nav" content="0" />
<meta name="acc" content="2-1" />
<title>计划列表</title>
<script type="text/javascript">
	$(document).ready(function(){
		$("#planstarDate").addClass("Wate").bind("click", function(){
			 WdatePicker({skin:'whyGreen',minDate:'1900-10-01', dateFmt:'yyyy-MM-dd'});});
		$("#planendDate").addClass("Wate").bind("focus", function(){
				 WdatePicker({skin:'whyGreen',minDate:'#F{$dp.$D(\'planstarDate\')}',dateFmt:'yyyy-MM-dd'});
		 });
	});
</script>
</head>
<body>
<div id="message"><s:actionmessage theme="custom"
	cssClass="success" /></div>
<form id="mainForm" action="${ctx}/app/plan.action" method="get" class="yform">
<div id="filter">
 <ul>
 <li>主题:<input type="text"    name="filter_LIKES_title" value="${param['filter_LIKES_title']}" /> </li>
 <li>计划类型:<pt:code category="1006" prompt="全部类型" name="filter_EQS_type" default="${param['filter_EQS_type']}"></pt:code></li>
 <li>开始时间:<input type="text"  id="planstarDate" name="filter_GED_planstarDate" value="${param['filter_GED_planstarDate']}" /> </li>
 <li>结束时间:<input type="text"  id="planendDate"  name="filter_LED_planendDate" value="${param['filter_LED_planendDate']}" /> </li>
 </ul>
 <div class="type-button"> <input type="button" value="查询" onclick="search();" class='search' /></div>
</div>
<div id="content">
<table id="contentTable">
	<tr>
		<th class="index"><a id="createDate" href="javascript:sort('createDate','asc')" >序号</a></th>
		<th><a id="title" href="javascript:sort('title','asc')">主题</a></th>
		<th><a id="type" href="javascript:sort('type','asc')">计划类型</a></th>
		<th><a id="planstarDate" href="javascript:sort('planstarDate','asc')">开始时间</a></th>
		<th class="handle"><a id="planendDate" href="javascript:sort('planendDate','asc')">结束时间</a></th>
		<th>操作</th>
	</tr>
	<c:forEach items="${page.result}" var="plan" varStatus="status">
	<tr class="${(status.count % 2 == 0) ? 'even' : 'odd'}">
			<td>${page.first+status.index}</td>
			<td><pt:text limit="15">${plan.title}</pt:text> </td>
			<td><pt:code category="1006" code="${plan.type }"></pt:code></td>
			<td><fmt:formatDate value="${plan.planstarDate }" pattern="yyyy-MM-dd HH:mm"/></td>
			<td><fmt:formatDate value="${plan.planendDate }" pattern="yyyy-MM-dd HH:mm"/></td>
			<td><a
				href="${ctx}/app/plan!input.action?id=${plan.id}">编辑</a> <a
				href="${ctx}/app/plan!delete.action?id=${plan.id}" onclick="return confirmDelete();">删除</a>
			</td>
		</tr>
	</c:forEach>
</table>
</div>
<jsp:include page="/common/page.jsp" flush="true" />
<div class="type-button"><input  type="button" onclick="location.href='${ctx}/app/plan!input.action'" class="add" value="新增" /></div>
</form>
</body>
